import { MockMethod } from 'vite-plugin-mock'

const data = {
  bankList: [
    {
      openCountry: '中国',
      accountName: '青岛金多乐品牌管理有限公司',
      bankName: '37150198822700001234',
      coin: '人民币',
      defaultBank: 1,
    },
    {
      openCountry: '中国',
      accountName: '青岛金多乐品牌管理有限公司',
      bankName: '37150198822700001234',
      coin: '美元',
      defaultBank: 0,
    },
  ],
  baseInfo:{
    customerName: '青岛金多乐品牌管理有限公司',
    customerNo: 'CUST0006',
    customer_country: '中国',
    customer_city: '青岛',
    customer_area: '崂山区',
    customerAddress: ['370000', '370200', '370212'],
    contacts: '王刚',
    contactsPhone: 17845691234,
    contactsAddress: '山东省青岛市崂山区株洲路23号',
  },
  invoiceList:[
    {
      invoice_header: '青岛金多乐品牌管理有限公司',
      tax_registration_number: '91370214MA3QMQRW0N',
      bank_of_deposit: '中国建设银行股份有限公司青岛城阳支行',
      bank_account: '37150198822700004567',
      invoicing_bank_phone: '18545676900',
      invoicing_bank_address: '山东省青岛市城阳区长城路89号25号楼501-2',
      social_credit_code: '91370214MA3QMQRW0N',
      default_invoice_info: 1,
    },
  ],
  invoiceTabs:[
    { label: '发票信息-默认' },
    { label: '发票信息-2' },
    { label: '发票信息-3' },
  ],
  treeList:[
    {
      label: '集团公司-1',
      children: [
        {
          label: '子公司-1-1',
          children: [
            {
              label: '子公司-1-1-1',
            },
          ],
        },
        {
          label: '子公司-2-1',
          children: [
            {
              label: '子公司-2-1-1',
            },
          ],
        },
        {
          label: '子公司-3-1',
          children: [
            {
              label: '子公司-3-1-1',
            },
          ],
        },
      ],
    },
    {
      label: '集团公司-2',
      children: [
        {
          label: '子公司-2-1',
          children: [
            {
              label: '子公司-2-1-1',
            },
          ],
        },
      ],
    },
  ],
  addressList:[
    {
      receiv_contact_person: '王刚',
      phone: '17852363575',
      receiv_address: ['370000', '370200', '370212'],
      bank_account: '王刚',
      detailed_address: '崂山区协信中心一号楼',
      default_receiv_address: 1,
      default_invoic_address: 1,
      default_pay_address: '1',
    }
  ],
  creditInfo:{
    limit: 10000.00,
    balance: 2100.00
  }
}

const invoiceTabs = [
  
]

export default [
  {
    url: '/corp/base',
    method: 'post',
    response: () => {
      return {
        code: 200,
        msg: 'success',
        data: { ...data },
      }
    },
  },
] as MockMethod[]
